package com.sgb.kjwl.view.ui.activity.self.pick;

import android.content.Context;
import android.content.Intent;
import androidx.databinding.DataBindingUtil;
import android.os.Bundle;

import com.sgb.kjwl.AppActivity;
import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ActivityUserPickDetailBinding;
import com.sgb.kjwl.di.self.DaggerSelfComponent;
import com.sgb.kjwl.di.self.SelfModule;
import com.sgb.kjwl.viewmodel.self.pick.UserPickDetailModel;
import com.swgk.core.base.di.AppComponent;

import javax.inject.Inject;

public class UserPickDetailActivity extends AppActivity {
    private ActivityUserPickDetailBinding binding;
    @Inject
    UserPickDetailModel viewModel;

    @Override
    protected void setupActivityComponent(AppComponent appComponent) {
        DaggerSelfComponent.builder().appComponent(appComponent).selfModule(new SelfModule(this)).build().inject(this);
    }

    public static void start(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, UserPickDetailActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected boolean statusBarDark() {
        return true;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initView() {
        binding = DataBindingUtil.setContentView(UserPickDetailActivity.this, R.layout.activity_user_pick_detail);
        binding.include.titleView.setText("招标详情");
        binding.setViewModel(viewModel);
    }
}
